route.ts
基本信息
- 类型: API 路由
- 路径:
src/app/api/prompts/[id]/flow/route.ts
功能描述
Get the full flow graph for a prompt. Optimized: Fetches all connections first, then batch-loads prompts. Cached with "prompt-flow" tag - revalidate when prompts/connections change.
导出内容
- 无显式导出
依赖导入
next/servernext/cache@/lib/auth@/lib/db
详细说明
详见代码实现